package com.ylkj.wx.message.req;

import java.io.Serializable;

import com.fasterxml.jackson.databind.ObjectMapper;

public class Message implements Serializable{
	private static final long serialVersionUID = -722665295136500421L;
	private String senderId;
	private String receiverId;
	private String title;
	private String body;

	public Message() {
		super();
	}

	public String getSenderId() {
		return senderId;
	}

	public void setSenderId(String senderId) {
		this.senderId = senderId;
	}

	public String getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(String receiverId) {
		this.receiverId = receiverId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public static void main(String[] args) throws Exception{
		Message m = new Message();
		m.setReceiverId("test01");
		m.setBody(System.currentTimeMillis()+"");
		ObjectMapper p = new ObjectMapper();
		String s = p.writeValueAsString(m);
		System.out.println(s);
	}
}
